#!/bin/bash
# 功能: 安装 Nginx
# 名称: dcv_nginx_install.sh
# 作者: zxm
# 创建日期: 2024-11-22
# 版本: v1.0

#解压

curPath=$(pwd)
cd deploy

rm -rf yasm-1.3.0 ffmpeg-4.1.3

#安装yasm
tar xf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix=$1/yasm
make && make install
cd ..
rm -rf yasm-1.3.0

echo “start install ffmpeg....”
sleep 3

#安装ffmpeg
tar xf ffmpeg-4.1.3.tar.gz
cd ffmpeg-4.1.3
./configure --prefix=$1/ffmpeg --disable-x86asm
make && make install
cd ..
# rm -rf ffmpeg-4.1.3

cd ${curPath}
